/*
 * File Name:mal_iwdg.c
 * Version:v1.0.0
 * Change Logs:
 * Date             Author      	main change
 * 2025-03-12      	lanxin          the first version
 *
*/

/********************************************* READ ME BEGIN *************************************************************/

/* Brief:
 *
 * *1.iwdg 抽象层。
 *
 */

/* Notice:
 *
 * *1.do mal_iwdg_bind_ops first,then init,finally do refresh.
 *
 */

/********************************************* READ ME END ***************************************************************/

/* source file */
#include "mal_iwdg.h"

/* debug define */

/* private define */

/* function declaration */

/* variable declaration */
static s_iwdg_ops_t *iwdg_ops = 0;

void mal_iwdg_bind_ops ( s_iwdg_ops_t *ops )
{
	iwdg_ops = ops;
}

void mal_iwdg_init ( uint16_t iwdg_timeout )
{
	if ( iwdg_ops && iwdg_ops->init )
		iwdg_ops->init ( iwdg_timeout );
}

void mal_iwdg_refresh ( void )
{
	if ( iwdg_ops && iwdg_ops->refresh )
		iwdg_ops->refresh();
}

/* 导出到初始化列表 */

/* 导出到 MSH 命令列表 */
